package ynu.edu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ynu.edu.common.service.LogicService;
import ynu.edu.dao.*;
import ynu.edu.entity.*;

import java.util.List;

@Service
public class ShopService extends LogicService<ShopDao, Shop,Long> {
    public ShopService(@Autowired ShopDao dao){
        super(dao);
    }
    public List<Shop> getAllShop(){
        return getDAO().findAll();
    }

}